package com.magupe.im.web.protocol.response;

import com.alibaba.fastjson.JSON;
import com.magupe.im.web.protocol.Command;

public class MessageResponse extends BaseResponse {

    private String fromId;

    public MessageResponse(){
        super();
    }

    public MessageResponse(int statusCode, String message) {
        super(statusCode, message);
    }

    public MessageResponse(ResponseStatus status) {
        super(status);
    }

    public String getFromId() {
        return fromId;
    }

    public void setFromId(String fromId) {
        this.fromId = fromId;
    }

    @Override
    public byte getCommand() {
        return Command.MESSAGE_RESPONSE;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
